/*
 * DGTextArea.fx
 *
 * Created on Apr 26, 2009, 8:48:00 PM
 */

package com.dg.gaming.client.fx.gui;
import javafx.ext.swing.SwingComponent;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

/**
 * @author dito
 */

public class DGTextArea extends SwingComponent{
    var textarea: JTextArea;
    var messageOutput: JTextArea;
    var js: JScrollPane;
    public override function createJComponent(){
        textarea = new JTextArea(10,20);
        js = new JScrollPane(textarea);
        return js;
    }
    public function send(str:String):Void{
        textarea.append(str);
    }

}